package com.houtai.bean;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

public class TsJzArticleInfo {
    /**
     * 文章标示
     */
    private Integer id;

    /**
     * 文章名称
     */
    @NotEmpty(message = "文章名称不能为空")
    @Length(max = 32, message = "文章名称最多32个字符")
    private String arti_name;

    /**
     * 文章类别
     */

    private Integer cate_id;

    /**
     * 文章内容
     */
    @NotEmpty(message = "文章内容不能为空")
    @Length(max = 2000000, message = "文章内容最多2000000个字符")
    private String arti_content;



    /**
     * 排序
     */
    @NotNull(message = "排序不能为空")
    private Integer arti_scort;

    /**
     * 0：可用
            1：不可用,非零即可表示为不可用
     */
    private Integer is_valid;

    /**
     * 创建人
     */
    private String creater;

    /**
     * 创建时间
     */
    private Date cret_date;

    /**
     * 修改人
     */
    private String modifier;

    /**
     * 修改时间
     */
    private Date mod_date;


    /**
     * 图片
     */
    @NotEmpty(message = "缩略图不能为空")
    private String arti_picture;
    /**
     * 评论人数
     */
    private Integer comments_people_size;

    /**
     * 评论数
     */
    private Integer comments_size;

    /**
     * 是否推荐 0是1否
     */
    private Integer is_recommended;
    /**
     * 发布人
     */
    @NotEmpty(message = "文发布人不能为空")
    @Length(max = 20, message = "发布人最多20个字符")
    private String release_people;
    /**
     * 是否可评论0是1否
     */
    private Integer is_comments;
    /**
     * 1后台新闻2园区动态3园区活动
     */
    private Integer arti_type;
    /**
     * 园区id
     */
    private Integer campus_id;
    @ApiModelProperty(value="类别名称", name="cate_name")
    private String cate_name;

    public String getCate_name() {
        return cate_name;
    }

    public void setCate_name(String cate_name) {
        this.cate_name = cate_name;
    }

    public Integer getArti_type() {
        return arti_type;
    }

    public void setArti_type(Integer arti_type) {
        this.arti_type = arti_type;
    }

    public Integer getCampus_id() {
        return campus_id;
    }

    public void setCampus_id(Integer campus_id) {
        this.campus_id = campus_id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getArti_name() {
        return arti_name;
    }

    public void setArti_name(String arti_name) {
        this.arti_name = arti_name;
    }

    public Integer getCate_id() {
        return cate_id;
    }

    public void setCate_id(Integer cate_id) {
        this.cate_id = cate_id;
    }

    public String getArti_content() {
        return arti_content;
    }

    public void setArti_content(String arti_content) {
        this.arti_content = arti_content;
    }

    public Integer getArti_scort() {
        return arti_scort;
    }

    public void setArti_scort(Integer arti_scort) {
        this.arti_scort = arti_scort;
    }

    public Integer getIs_valid() {
        return is_valid;
    }

    public void setIs_valid(Integer is_valid) {
        this.is_valid = is_valid;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public Date getCret_date() {
        return cret_date;
    }

    public void setCret_date(Date cret_date) {
        this.cret_date = cret_date;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public Date getMod_date() {
        return mod_date;
    }

    public void setMod_date(Date mod_date) {
        this.mod_date = mod_date;
    }

    public String getArti_picture() {
        return arti_picture;
    }

    public void setArti_picture(String arti_picture) {
        this.arti_picture = arti_picture;
    }

    public Integer getComments_people_size() {
        return comments_people_size;
    }

    public void setComments_people_size(Integer comments_people_size) {
        this.comments_people_size = comments_people_size;
    }

    public Integer getComments_size() {
        return comments_size;
    }

    public void setComments_size(Integer comments_size) {
        this.comments_size = comments_size;
    }

    public Integer getIs_recommended() {
        return is_recommended;
    }

    public void setIs_recommended(Integer is_recommended) {
        this.is_recommended = is_recommended;
    }

    public String getRelease_people() {
        return release_people;
    }

    public void setRelease_people(String release_people) {
        this.release_people = release_people;
    }

    public Integer getIs_comments() {
        return is_comments;
    }

    public void setIs_comments(Integer is_comments) {
        this.is_comments = is_comments;
    }
}